package com.bmslz.monitor.service;

import com.bmslz.monitor.base.dto.DoAlarmDto;
import com.bmslz.monitor.base.entity.AlarmModel;

public interface AlarmNotify {
    /**
     * 判断是否支持该数据类型
     */
    boolean supports(String notifyType);

    /**
     * 发送告警通知
     *
     * @param projectAlarm 告警数据
     * @return 是否发送成功
     */
    boolean send(DoAlarmDto projectAlarm, AlarmModel alarmModel);
}
